import request from '@/utils/request'
import Host from '@/service/config.js'
const { apiHost, METHOD: { POST }} = Host

/**
 * @description 列表回款单
 * @param {*} data
 * @returns
 */
export const listQuery = data => request({
  url: `${apiHost}/api/finance/paymentPlanOrder/v1/list`,
  method: POST,
  data
})

/**
 * @description 查看回款单
 * @param {*} data
 * @returns
 */
export const viewQuery = data => request({
  url: `${apiHost}/api/finance/paymentPlanOrder/v1/view`,
  method: POST,
  data
})

/**
 * @description 核销记录 - 通过回款单编号查找
 * @param {*} data
 * @returns
 */
export const getByPlanOrderNoQuery = data => request({
  url: `${apiHost}/api/finance/writeOffRecord/v1/getByPlanOrderNo`,
  method: POST,
  data
})
